package com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.entity.base.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("资源库实体")
@TableName(value = "store_house")
public class StoreHouse extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @JsonSerialize(using = ToStringSerializer.class)//处理后端Long类型传到前端精度丢失的正确解决方式
    @ApiModelProperty(value = "主键 用户id", example = "1")
    private Long id;

    @ApiModelProperty(value = "总存储空间(Kb)", example = "1024")
    private Double tCapacity;
    @ApiModelProperty(value = "已占用空间(Kb)", example = "1024")
    private Double uCapacity;
    @ApiModelProperty(value = "剩余存储空间(Kb)", example = "1024")
    private Double rCapacity;
    @ApiModelProperty(value = "资源库状态", example = "1正常 2禁用")
    private Integer status;
    @ApiModelProperty(value = "资源库id", example = "1(班级资源库) 2(公共资源库)")
    private Integer roleId;
    @ApiModelProperty(value = "资源库路径", example = "/home/user1")
    private String path;
}
